import request from '@/utils/request'

// 查询草药项记录列表
export function listHerbalItemRecord(query) {
  return request({
    url: '/dms/herbalItemRecord/list',
    method: 'get',
    params: query
  })
}

// 查询草药项记录详细
export function getHerbalItemRecord(id) {
  return request({
    url: '/dms/herbalItemRecord/' + id,
    method: 'get'
  })
}

// 新增草药项记录
export function addHerbalItemRecord(data) {
  return request({
    url: '/dms/herbalItemRecord',
    method: 'post',
    data: data
  })
}

// 修改草药项记录
export function updateHerbalItemRecord(data) {
  return request({
    url: '/dms/herbalItemRecord',
    method: 'put',
    data: data
  })
}

// 删除草药项记录
export function delHerbalItemRecord(id) {
  return request({
    url: '/dms/herbalItemRecord/' + id,
    method: 'delete'
  })
}
